import 'package:customer/extension/extension_widget.dart';
import 'package:fluent_ui/fluent_ui.dart';

//编辑界面 底部的保存按钮
class BottomButton extends StatelessWidget{
  final String title;
  final VoidCallback? onPressed;
  const BottomButton(this.title, this.onPressed, {super.key});

  @override
  Widget build(BuildContext context) {
    return Flex(
      direction: Axis.horizontal,
      children: [
        Expanded(
            flex: 1,
            child: FilledButton(
                child: Text(title), onPressed: onPressed)
                .padding(const EdgeInsets.symmetric(horizontal: 100),))
      ],
    );
  }
}